#ifndef WARNINGSTATISTICSINTERFACE_H
#define WARNINGSTATISTICSINTERFACE_H

#include <QMainWindow>
#include <QtCharts/QChartGlobal>
#include <QtCharts/QBarSeries>
#include <QtCharts/QBarSet>
#include <QtCharts/QChart>
#include <QtCharts/QChartView>
#include <QtCharts/QBarCategoryAxis>
#include <QtCharts/QValueAxis>
#include <QtCharts/QLegend>

QT_CHARTS_USE_NAMESPACE
namespace Ui {
class WarningStatisticsInterface;
}

class WarningStatisticsInterface : public QMainWindow
{
    Q_OBJECT

public:
    explicit WarningStatisticsInterface(QWidget *parent = nullptr);
    ~WarningStatisticsInterface();
     static WarningStatisticsInterface* instance();
     void RefreshWarningTimes();
private slots:


     void on_pushButtonExit_clicked();

     void on_pushButtonRefresh_clicked();
private:
     void setLcdNumber();
     void showColoredWarningBarChart(QWidget *parent = nullptr);

private:
    Ui::WarningStatisticsInterface *ui;

};

#endif // WARNINGSTATISTICSINTERFACE_H
